import {
    axios
  } from '@/utils/request'
  
  // 查询表格数据
  export function jbdLeadList(parameter) {
    return axios({
      url: 'jbd/jbdLeads/list',
      method: 'GET',
      params: parameter,
      headers: {
        'Content-Type': 'application/x-www-form-urlencoded',
      }
    })
  }
  
  // 通过id获取详情信息
  export function queryById(parameter) {
    return axios({
      url: 'jbd/jbdLeads/queryById',
      method: 'GET',
      params: parameter,
      headers: {
        'Content-Type': 'application/x-www-form-urlencoded',
      }
    })
  }
  
  // 
  export function queryAll() {
    return axios({
      url: 'jbd/jbdService/queryAll',
      method: 'GET',
      headers: {
        'Content-Type': 'application/x-www-form-urlencoded',
      }
    })
  }

  
  export function JbdServiceAdd(parameter) {
    return axios({
      url: 'jbd/jbdService/add',
      method: 'post',
      data: parameter,
      headers: {
        'Content-Type': 'application/json',
      }
    })
  }

  export function JbdServiceEdit(parameter) {
    return axios({
      url: 'jbd/jbdService/edit',
      method: 'PUT',
      data: parameter,
      headers: {
        'Content-Type': 'application/json',
      }
    })
  }

  export function JbdServiceDelete(data) {
    return axios({
      url: 'jbd/jbdService/delete',
      method: 'DELETE',
      params: data,
      headers: {
        'Content-Type': 'application/x-www-form-urlencoded',
      }
    })
  }



  
  

  export function JbdServiceQueryList(parameter) {
    return axios({
      url: 'jbd/jbdService/queryList',
      method: 'GET',
      data: parameter,
      headers: {
        'Content-Type': 'application/x-www-form-urlencoded',
      }
    })
  }

  export function JbdServiceChildList(parameter) {
    return axios({
      url: 'jbd/jbdService/childList',
      method: 'GET',
      data: parameter,
      headers: {
        'Content-Type': 'application/x-www-form-urlencoded',
      }
    })
  }

  
  export function DepartQueryTreeList(parameter) {
    return axios({
      url: 'sys/sysDepart/queryTreeList',
      method: 'GET',
      data: parameter,
      headers: {
        'Content-Type': 'application/x-www-form-urlencoded',
      }
    })
  }
  
  
  

  